package com.ui.design.view.gradualcolor;

import android.graphics.Color;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.ui.design.R;
import com.ui.design.view.gradualcolor.view.GradualColor;
import com.ui.design.main.base.BaseActivity;
import com.ui.design.main.constants.Constants;

@Route(path = Constants.GradualColor)
public class GradualColorActivity extends BaseActivity {

    @Override
    protected int initLayout() {
        return R.layout.activity_gradual_color;
    }

    @Override
    protected void initView() {
      //  setTitleText("渐变色View","https://blog.csdn.net/number_cmd9/article/details/110678576");
        GradualColor gradualColor2 = findViewById(R.id.gradualcolor2);
        GradualColor gradualColor3 = findViewById(R.id.gradualcolor3);
        GradualColor gradualColor4 = findViewById(R.id.gradualcolor4);
        gradualColor2.SetMoreColor(new int[]{Color.parseColor("#FFDDBB"), Color.parseColor("#FFC0CD"), Color.parseColor("#B5BBFF"), Color.parseColor("#AADCFF"), Color.parseColor("#FBCAEA"), Color.parseColor("#FFFFFF")}
                , GradualColor.ColorWay.VERTICAL);
        gradualColor3.SetMoreColor(new int[]{Color.parseColor("#FFDDBB"), Color.parseColor("#FFC0CD"), Color.parseColor("#B5BBFF"), Color.parseColor("#AADCFF"), Color.parseColor("#FBCAEA"), Color.parseColor("#FFC501")}
                , GradualColor.ColorWay.HORIZONTAL);
        gradualColor4.SetMoreColor(new int[]{Color.parseColor("#FFDDBB"), Color.parseColor("#FFC0CD"), Color.parseColor("#B5BBFF"), Color.parseColor("#AADCFF"), Color.parseColor("#FBCAEA"), Color.parseColor("#FFC501")}
                , GradualColor.ColorWay.OBLIQUE);
    }

    @Override
    protected void initData() {

    }

}